package cn.wh.transaction;

import java.sql.Connection;
import java.sql.SQLException;

/**
 * @Author: wh
 * @CreateTime: 2023-01-16  17:38
 * @Description: 事物接口
 * @Version: 1.0
 */
public interface Transaction {


    Connection getConnection() throws SQLException;


    void commit() throws SQLException;


    void rollback() throws SQLException;


    void close() throws SQLException;



}
